package com.group.eams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group.eams.pojo.dto.AssetStorageQueryDto;
import com.group.eams.pojo.dto.FixedAssetDetailQueryDto;
import com.group.eams.pojo.dto.FixedAssetQueryDto;
import com.group.eams.pojo.entity.AssetOutStorage;
import com.group.eams.pojo.entity.AssetStorage;
import com.group.eams.pojo.entity.AssetStorage;
import com.group.eams.pojo.vo.AssetStorageListVo;
import com.group.eams.pojo.vo.FixedAssetDetailListVo;
import com.group.eams.pojo.vo.FixedAssetListVo;
import org.apache.ibatis.annotations.Param;

/**
* @author 恩哲欣
* @description 针对表【asset_storage(资产入库表)】的数据库操作Mapper
* @createDate 2024-10-29 16:09:34
* @Entity com.group.eams.pojo.entity.AssetStorage
*/
public interface AssetStorageMapper extends BaseMapper<AssetStorage> {

    Page<AssetStorageListVo> findAssetStorageList(Page<AssetStorage> page,
                                            @Param("assetStorageQueryDto")
                                            AssetStorageQueryDto assetStorageQueryDto);

    //查询入库单资产详情
    Page<FixedAssetDetailListVo> findByQueryDto(Page<FixedAssetDetailListVo> page,
                                          @Param("fixedAssetDetailQueryDto")
                                          FixedAssetDetailQueryDto fixedAssetDetailQueryDto);

    //根据单号查询入库单
    AssetStorage findByApplicationNum(@Param("applicationNum") String applicationNum);
}
